package com.simon.bio;

import java.io.*;
import java.net.Socket;

/**
 * Created by changf on 2017/7/10.
 */
public class MyClient {
    void send()throws Exception{
        Socket client=new Socket("127.0.0.1",8999);
        InputStream inputStream = client.getInputStream();
        OutputStream outputStream = client.getOutputStream();
        while(true) {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
            PrintWriter printWriter = new PrintWriter(outputStream,true);
            printWriter.println("bio hello world");

            String s = bufferedReader.readLine();
            System.out.println("client get response:" + s);
        }
    }
}
